<include file="Common/header" />
<title>物业服务</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 基本信息管理
	<span class="c-gray en">&gt;</span> 房卡管理
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<div class="pd-20">
	<div class="cl pd-5 bg-1 bk-gray"> 
		<span class="l"> 
			<a class="btn btn-primary radius" href="javascript:;" onclick="admin_role_add('添加房卡','card_add.html','500', '300')"><i class="Hui-iconfont">&#xe600;</i> 添加房卡</a>
		</span>
		<span class="r">共有数据：<strong>{$count}</strong> 条</span>
	</div>
	<div class="dataTables_wrapper no-footer" id="ajaxDiv">
		<include file="Eqment/card_list" />
	</div>
</div>

<script type="text/javascript">
	/*管理员-角色-添加*/
	function admin_role_add(title,url,w,h){
		layer_show(title,url,w,h);
	}
	/*管理员-角色-编辑*/
	function admin_role_edit(title,url,id,w,h){
		layer_show(title,url,500, 300);
	}
	
	function admin_role_del(obj,id){
		layer.confirm('确认要删除吗？',function(index){
			$.post("remove.html",{id: id, type: 'card'}, function(data){
				if(data/1){
					layer.msg('删除成功', {icon:1,time:2000}, function(){
						location.reload();
					});
				}else{
					layer.msg('删除失败', {icon:1,time:2000});
				}
			});
		});
	}
	
	$(document).ready(function(){
		
	});
</script>
</body>
</html>